package channel

import (
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/dao/schema"
)

const TableNameUserChannelLocalEwallet = "user_channel_local_ewallet"

// UserChannelLocalEwallet 用户通道【local_ewallet】
type UserChannelLocalEwallet struct {
	schema.Model
	UserId           int64   `gorm:"type:bigint;not null;comment:用户ID"`
	WalletType       string  `gorm:"type:varchar(32);not null;comment:类型"`
	Owner            string  `gorm:"type:varchar(255);not null;comment:持卡人"`
	VisionLevel      string  `gorm:"type:varchar(32);not null;comment:可见等级"`
	Phone            string  `gorm:"type:varchar(32);not null;comment:电话号"`
	Code             string  `gorm:"type:varchar(32);not null;comment:Code"`
	RevenueMin       float64 `gorm:"type:decimal(10,4);not null;comment:最小收款金额"`
	RevenueMax       float64 `gorm:"type:decimal(10,4);not null;comment:最大收款金额"`
	FixedDailyLimit  int32   `gorm:"type:int;not null;comment:固定日总比数"`
	RemainDailyLimit int32   `gorm:"type:int;not null;comment:剩余日总比数"`
	IncomeDailyLimit int32   `gorm:"type:int;not null;comment:已收日总比数"`
	DailyLimit       float64 `gorm:"type:decimal(10,4);not null;comment:日限额"`
	Sort             int32   `gorm:"type:int;not null;comment:排序"`
	Remake           string  `gorm:"type:varchar(255);not null;comment:备注"`
	IsVision         int32   `gorm:"type:tinyint;not null;comment:显示"`
}

func (*UserChannelLocalEwallet) TableName() string {
	return TableNameUserChannelLocalEwallet
}
